#include "Mystdio.h"
#include<unistd.h>
int main()
{
 _FILE *fp = _fopen("test.txt","w");
 if(fp == NULL) return 1;

 const char* msg = "hello world\n";
// _fwrite(fp,msg,strlen(msg));
 int cnt = 10;
while(cnt--)
{
_fwrite(msg,strlen(msg),1,fp);
 //fflush(fp);
 sleep(1);
}
 _fclose(fp);

  return 0;
}
